﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AndroidMgr : MonoBehaviour {
	private AndroidJavaObject _appInfoTool;
	void Awake()

	{
		// 创建AppInfoTool实例  
#if !UNITY_EDITOR
        _appInfoTool = new AndroidJavaObject("com.amew.xumyrich.SJ");
#else

#endif
	}
	// Use this for initialization
	void Start () {
		
	}
	/// <summary>
	/// 分享
	/// </summary>
	/// <param name="content"></param>
	public void OnShareToAndroid(string content)
	{
		Debug.Log("");
#if !UNITY_EDITOR
        _appInfoTool.Call("shardUrl", content);
#else
		Debug.Log("分享");
#endif
	}
}
